import { Button, Input } from "antd"
import TextArea from "antd/lib/input/TextArea";
import { useEffect, useState } from "react"

export default function Index(props: any) {
    const [antistop, setantistop] = useState('');
    const [seoDesc, setseoDesc] = useState('');
    useEffect(() => {
        setantistop(props.InitialValue.seoKeyword)
        setseoDesc(props.InitialValue.seoDesc)
    }, [])

    console.log(props.InitialValue)
    return (
        <div>
            <p>
                关键词 <Input value={antistop} placeholder="Basic usage" />
            </p>
            <p>
                描述信息 <TextArea value={seoDesc} rows={4} />
            </p>
            <Button  type="primary">保存</Button>
        </div>
    )
}